# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='TbAblation',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('t_name', models.CharField(max_length=40, blank=True, null=True)),
                ('t_ver', models.CharField(max_length=4, blank=True, null=True)),
                ('m_no', models.CharField(max_length=20, blank=True, null=True)),
                ('m_stat', models.CharField(max_length=10, blank=True, null=True)),
                ('update_time', models.DateTimeField(blank=True, null=True)),
                ('engi_id', models.CharField(max_length=20, blank=True, null=True)),
                ('last_name', models.CharField(max_length=20, blank=True, null=True)),
                ('status', models.IntegerField(blank=True, null=True)),
                ('w_bala', models.FloatField(blank=True, null=True)),
                ('w_speed', models.FloatField(blank=True, null=True)),
                ('w_feed', models.FloatField(blank=True, null=True)),
                ('end_time', models.DateTimeField(blank=True, null=True)),
                ('ap_num', models.IntegerField(blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_ablation',
            },
        ),
        migrations.CreateModel(
            name='TbBiotechmessage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('t_name', models.CharField(max_length=40, blank=True, null=True)),
                ('w_no', models.CharField(max_length=40, blank=True, null=True)),
                ('m_no', models.CharField(max_length=40, blank=True, null=True)),
                ('w_name', models.CharField(max_length=40, blank=True, null=True)),
                ('w_ceme', models.CharField(max_length=40, blank=True, null=True)),
                ('w_bran', models.CharField(max_length=40, blank=True, null=True)),
                ('w_diam', models.FloatField(blank=True, null=True)),
                ('w_arc', models.FloatField(blank=True, null=True)),
                ('m_stat', models.CharField(max_length=20, blank=True, null=True)),
                ('engi_id', models.CharField(max_length=10, blank=True, null=True)),
                ('engi_time', models.DateTimeField(blank=True, null=True)),
                ('w_bala', models.FloatField(blank=True, null=True)),
                ('w_rnot1', models.FloatField(blank=True, null=True)),
                ('t_ver', models.CharField(max_length=40, blank=True, null=True)),
                ('w_rnot2', models.FloatField(blank=True, null=True)),
                ('g_ct', models.FloatField(blank=True, null=True)),
                ('w_gran', models.CharField(max_length=20, blank=True, null=True)),
                ('w_speed', models.FloatField(blank=True, null=True)),
                ('w_feed', models.FloatField(blank=True, null=True)),
                ('status', models.IntegerField(blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_biotechmessage',
            },
        ),
        migrations.CreateModel(
            name='TbBrand',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('w_brand', models.CharField(max_length=20, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_brand',
            },
        ),
        migrations.CreateModel(
            name='TbCorrections',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('modelcode', models.CharField(max_length=5, blank=True, null=True)),
                ('site', models.CharField(max_length=30, blank=True, null=True)),
                ('sitenum', models.CharField(max_length=5, blank=True, null=True)),
                ('drcorrection', models.CharField(max_length=30, blank=True, null=True)),
                ('correctionname', models.CharField(max_length=30, blank=True, null=True)),
                ('correctioncode', models.CharField(max_length=30, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_corrections',
            },
        ),
        migrations.CreateModel(
            name='TbCTypeBody',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('type_part', models.CharField(max_length=20, blank=True, null=True)),
                ('size_name', models.CharField(max_length=25, blank=True, null=True)),
                ('size_code', models.CharField(max_length=20, blank=True, null=True)),
                ('g_type', models.CharField(max_length=10, blank=True, null=True)),
                ('status', models.IntegerField(blank=True, null=True)),
                ('context', models.TextField(blank=True, null=True)),
                ('desc1', models.IntegerField(blank=True, null=True)),
                ('size_picture', models.CharField(max_length=255, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_c_type_body',
            },
        ),
        migrations.CreateModel(
            name='TbCTypeHead',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('c_type', models.CharField(max_length=20, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_c_type_head',
            },
        ),
        migrations.CreateModel(
            name='TbDesignmessage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('t_name', models.CharField(max_length=40)),
                ('t_spec', models.CharField(max_length=20, blank=True, null=True)),
                ('t_type', models.CharField(max_length=10)),
                ('t_diam', models.FloatField(blank=True, null=True)),
                ('t_flen', models.FloatField(blank=True, null=True)),
                ('t_fnum', models.IntegerField(blank=True, null=True)),
                ('t_mmat', models.CharField(max_length=20, blank=True, null=True)),
                ('desi_id', models.CharField(max_length=10, blank=True, null=True)),
                ('last_name', models.CharField(max_length=20, blank=True, null=True)),
                ('desi_time', models.DateTimeField(blank=True, null=True)),
                ('t_conn', models.CharField(max_length=40, blank=True, null=True)),
                ('t_ver', models.CharField(max_length=20, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_designmessage',
            },
        ),
        migrations.CreateModel(
            name='TbDesignsize',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('t_name', models.CharField(max_length=40, blank=True, null=True)),
                ('d_code', models.CharField(max_length=20, blank=True, null=True)),
                ('g_type', models.CharField(max_length=20, blank=True, null=True)),
                ('g_size', models.FloatField(blank=True, null=True)),
                ('g_otol', models.FloatField(blank=True, null=True)),
                ('g_itol', models.FloatField(blank=True, null=True)),
                ('desi_id', models.CharField(max_length=10, blank=True, null=True)),
                ('last_name', models.CharField(max_length=20, blank=True, null=True)),
                ('desi_time', models.DateTimeField(blank=True, null=True)),
                ('t_ver', models.CharField(max_length=10, blank=True, null=True)),
                ('grindingsite', models.CharField(max_length=50, blank=True, null=True)),
                ('desc1', models.IntegerField(blank=True, null=True)),
                ('toolt', models.ForeignKey(to='ims.TbDesignmessage')),
            ],
            options={
                'db_table': 'tb_designsize',
            },
        ),
        migrations.CreateModel(
            name='TbGrindngsite',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('modelcode', models.CharField(max_length=5, blank=True, null=True)),
                ('site', models.CharField(max_length=30, blank=True, null=True)),
                ('sitenum', models.CharField(max_length=5, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_grindngsite',
            },
        ),
        migrations.CreateModel(
            name='TbMachine',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('site', models.CharField(max_length=4, blank=True, null=True)),
                ('m_type', models.CharField(max_length=40, blank=True, null=True)),
                ('cell_num', models.CharField(max_length=4, blank=True, null=True)),
                ('new_name', models.CharField(max_length=40, blank=True, null=True)),
                ('org', models.CharField(max_length=60, blank=True, null=True)),
                ('org_code', models.CharField(max_length=40, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_machine',
            },
        ),
        migrations.CreateModel(
            name='TbMachineCode',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('m_type', models.CharField(max_length=20)),
                ('m_code', models.CharField(max_length=4)),
            ],
            options={
                'db_table': 'tb_machine_code',
            },
        ),
        migrations.CreateModel(
            name='TbProductHead',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('ct', models.IntegerField(blank=True, null=True)),
                ('me_no', models.IntegerField(blank=True, null=True)),
                ('t_name', models.CharField(max_length=50, blank=True, null=True)),
                ('m_no', models.CharField(max_length=50, blank=True, null=True)),
                ('op_id', models.CharField(max_length=20, blank=True, null=True)),
                ('last_name', models.CharField(max_length=20, blank=True, null=True)),
                ('op_time', models.DateTimeField(blank=True, null=True)),
                ('t_no', models.CharField(max_length=20, blank=True, null=True)),
                ('t_bmta', models.CharField(max_length=20, blank=True, null=True)),
                ('t_rnot', models.CharField(max_length=20, blank=True, null=True)),
                ('t_ver', models.CharField(max_length=40, blank=True, null=True)),
                ('status', models.IntegerField(blank=True, null=True)),
                ('m_stat', models.CharField(max_length=10, blank=True, null=True)),
                ('uuid', models.CharField(max_length=255, blank=True, null=True)),
                ('file_path', models.CharField(max_length=255, blank=True, null=True)),
                ('end_time', models.DateTimeField(blank=True, null=True)),
                ('toolt', models.ForeignKey(to='ims.TbDesignmessage')),
            ],
            options={
                'db_table': 'tb_product_head',
            },
        ),
        migrations.CreateModel(
            name='TbProductionmessage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('t_name', models.CharField(max_length=40, blank=True, null=True)),
                ('m_no', models.CharField(max_length=40, blank=True, null=True)),
                ('m_stat', models.CharField(max_length=40, blank=True, null=True)),
                ('d_code', models.CharField(max_length=20, blank=True, null=True)),
                ('me_no', models.IntegerField(blank=True, null=True)),
                ('me_num', models.FloatField(blank=True, null=True)),
                ('wheel_1', models.CharField(max_length=45, blank=True, null=True)),
                ('wheel_2', models.CharField(max_length=45, blank=True, null=True)),
                ('wheel_3', models.CharField(max_length=45, blank=True, null=True)),
                ('p_para', models.CharField(max_length=20, blank=True, null=True)),
                ('op_id', models.CharField(max_length=20, blank=True, null=True)),
                ('last_name', models.CharField(max_length=20, blank=True, null=True)),
                ('op_time', models.DateTimeField(blank=True, null=True)),
                ('t_no', models.CharField(max_length=40, blank=True, null=True)),
                ('t_bmta', models.CharField(max_length=40, blank=True, null=True)),
                ('t_rnot', models.FloatField(blank=True, null=True)),
                ('t_ver', models.CharField(max_length=40, blank=True, null=True)),
                ('status', models.IntegerField(blank=True, null=True)),
                ('mark_num', models.IntegerField(blank=True, null=True)),
                ('uuid', models.CharField(max_length=255, blank=True, null=True)),
                ('end_time', models.DateTimeField(blank=True, null=True)),
                ('ap_num', models.IntegerField(blank=True, null=True)),
                ('head', models.ForeignKey(to='ims.TbProductHead')),
            ],
            options={
                'db_table': 'tb_productionmessage',
            },
        ),
        migrations.CreateModel(
            name='TbWheelmessage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('t_name', models.CharField(max_length=40, blank=True, null=True)),
                ('w_no', models.CharField(max_length=20, blank=True, null=True)),
                ('w_type', models.CharField(max_length=20, blank=True, null=True)),
                ('w_gran', models.CharField(max_length=5, blank=True, null=True)),
                ('w_speed', models.IntegerField(blank=True, null=True)),
                ('w_feed', models.CharField(max_length=20, blank=True, null=True)),
                ('desi_id', models.CharField(max_length=20, blank=True, null=True)),
                ('last_name', models.CharField(max_length=20, blank=True, null=True)),
                ('desi_time', models.DateTimeField(blank=True, null=True)),
                ('m_type', models.CharField(max_length=20, blank=True, null=True)),
                ('t_ver', models.CharField(max_length=20, blank=True, null=True)),
                ('w_station', models.CharField(max_length=255, blank=True, null=True)),
                ('toolt', models.ForeignKey(to='ims.TbDesignmessage')),
            ],
            options={
                'db_table': 'tb_wheelmessage',
            },
        ),
        migrations.CreateModel(
            name='TbWheelSort',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('t_name', models.CharField(max_length=40, blank=True, null=True)),
                ('w_no', models.CharField(max_length=4, blank=True, null=True)),
                ('m_no', models.CharField(max_length=20, blank=True, null=True)),
                ('w_name', models.CharField(max_length=20, blank=True, null=True)),
                ('w_ceme', models.CharField(max_length=10, blank=True, null=True)),
                ('w_bran', models.CharField(max_length=10, blank=True, null=True)),
                ('w_diam', models.FloatField(blank=True, null=True)),
                ('w_arc', models.FloatField(blank=True, null=True)),
                ('m_stat', models.CharField(max_length=20, blank=True, null=True)),
                ('engi_id', models.CharField(max_length=20, blank=True, null=True)),
                ('last_name', models.CharField(max_length=20, blank=True, null=True)),
                ('update_time', models.DateTimeField(blank=True, null=True)),
                ('t_ver', models.CharField(max_length=4, blank=True, null=True)),
                ('status', models.IntegerField(blank=True, null=True)),
                ('w_rnot1', models.FloatField(blank=True, null=True)),
                ('w_rnot2', models.FloatField(blank=True, null=True)),
                ('w_gran', models.CharField(max_length=20, blank=True, null=True)),
                ('mark_num', models.IntegerField(blank=True, null=True)),
                ('uuid', models.CharField(max_length=255, blank=True, null=True)),
                ('file_path0', models.CharField(max_length=255, blank=True, null=True)),
                ('end_time', models.DateTimeField(blank=True, null=True)),
                ('w_station', models.CharField(max_length=255, blank=True, null=True)),
                ('toolt', models.ForeignKey(to='ims.TbDesignmessage')),
            ],
            options={
                'db_table': 'tb_wheel_sort',
            },
        ),
        migrations.AddField(
            model_name='tbctypebody',
            name='c_type',
            field=models.ForeignKey(blank=True, null=True, to='ims.TbCTypeHead'),
        ),
        migrations.AddField(
            model_name='tbablation',
            name='toolt',
            field=models.ForeignKey(to='ims.TbDesignmessage'),
        ),
        migrations.AddField(
            model_name='tbablation',
            name='wsort',
            field=models.ForeignKey(to='ims.TbWheelSort'),
        ),
    ]
